package com.kinglong.demo.model;

/**
 * @author jyangzi5
 * @version 1.0
 * @description: TODO
 * @date 2021/4/19 11:18
 */
public class BaseVo {

    /**
     * 分页起始页
     */
    private Integer start;
    /**
     * 分页总条数
     */
    private Integer length;

    private Integer page;
    private Integer limit;
    private String order;
    private String sort;

    private String all;

    public String getAll() {
        return all;
    }

    public void setAll(String all) {
        this.all = all;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getStart() {
        return (page==null?1:page-1)*(limit==null?10:limit);

    }

    public void setStart(Integer start) {
        this.start = start;
    }

    public Integer getLength() {
        return limit;
    }

    public String getOrder() {
        return order;
    }

    public void setOrder(String order) {
        this.order = order;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public void setLength(Integer length) {
        this.length = length;
    }
}
